package com.yunyi.user.service.impl;

import com.yunyi.model.company.Company;
import com.yunyi.model.mappers.company.CompanyMapper;
import com.yunyi.user.constant.Constant;
import com.yunyi.user.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @ClassName CompanyServiceImpl
 * @Description 用人单位信息
 * @Author leizhang
 * Date 2021/8/20 11:36 下午
 * @Version 1.0
 **/
@Service
public class CompanyServiceImpl implements CompanyService {
    @Autowired
    private CompanyMapper companyMapper;
    /**
     * @Description : 获取用人单位信息
     * @Author : leizhang
     * @Date 11:37 下午 2021/8/20
     * @param requestParam
     * @return java.util.List<com.yunyi.model.company.Company>
     **/
    @Override
    public List<Company> getCompanyInfos(Map<String, Object> requestParam) throws Exception {
        requestParam.put(Constant.STATUS,1);
        return companyMapper.getCompanyInfos(requestParam);
    }
}
